package com.qingzhuge.member.dto.response;

import com.qingzhuge.dto.response.BaseResponsePkLongDto;
import com.qingzhuge.member.enums.EnumThirdAppType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author : zero.xiao
 * @description : 第三方配置
 * @date :2018/10/15 0015 下午 20:43
 * @modified :
 * @since : 1.0.0
 */
@Setter
@Getter
@ApiModel("第三方配置")
public class SysThirdAppConfigResponseDto extends BaseResponsePkLongDto {
    private static final long serialVersionUID = -8908807666192077612L;
    @ApiModelProperty("类型")
    private EnumThirdAppType type;
    @NotBlank(message = "开发者ID(AppID)不能为空")
    @ApiModelProperty("开发者ID(AppID)不能为空")
    private String appId;
    @NotBlank(message = "开发者密钥(AppSecret)不能为空")
    @ApiModelProperty("开发者密钥(AppSecret)不能为空")
    private String appSecret;
    @ApiModelProperty("服务器地址(URL)")
    private String url;
    @ApiModelProperty("回调地址")
    private String redirectUrl;
    @ApiModelProperty("设置消息服务器配置的token")
    private String token;
    @ApiModelProperty("设置消息服务器配置的EncodingAESKey")
    private String encodingAESKey;
    @ApiModelProperty("XML或者JSON")
    private String msgDataFormat;
}